﻿<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="facecat">
  <head>
    <script>
        function changeParameter(){
            var index = getAttribute("ComboBox2", "selectedindex");
            if(index == 0){
                setAttribute("TextBox", "text", "16");
                setAttribute("TextBox2", "text", "26");
                setAttribute("TextBox3", "text", "9");
            }else if(index == 1){
                setAttribute("TextBox", "text", "9");
                setAttribute("TextBox2", "text", "3");
                setAttribute("TextBox3", "text", "3");
            }else if(index == 2){
                setAttribute("TextBox", "text", "10");
                setAttribute("TextBox2", "text", "10");
                setAttribute("TextBox3", "text", "10");
            }
            invalidate();
        }
    </script>
  </head>
  <body>
    <div dock="fill" type="tab" selectedindex="0">
      <div name="TabPage" text="可视化生成" type="tabpage">
        <select name="ComboBox" location="29,40" size="100,20" selectedindex="0">
          <option text="选项1"/>
          <option text="选项2"/>
          <option text="选项3"/>
        </select>
      </div>
      <div name="TabPage2" text="代码创建" type="tabpage"/>
      <div name="TabPage3" text="触发脚本" type="tabpage">
        <select name="ComboBox2" location="36,28" size="100,20" selectedindex="0" onselectedindexchanged="changeParameter();">
          <option text="参数1"/>
          <option text="参数2"/>
          <option text="参数3"/>
        </select>
        <input type="text" name="TextBox" location="36,72" size="100,20"/>
        <input type="text" name="TextBox2" location="36,114" size="100,20"/>
        <input type="text" name="TextBox3" location="36,160" size="100,20"/>
      </div>
    </div>
  </body>
</html>
